#!/usr/bin/python
#Auther : MillionLee

'''
Get user list

get entire of the user list as a dict
'''

#from google.appengine.ext import db

userlist = {}
from userListModel import UserDB
from google.appengine.ext import db

def getUserList():
    userItems = db.GqlQuery("SELECT * FROM UserDB ORDER BY _userkey DESC LIMIT 100")
    for userItem in userItems:
        userlist[userItem._userkey] = (userItem._secret, userItem._name, userItem._lastUpdateDateStr)
    return userlist
    